import request from '@/utils/request'

const api = {
    updateData: 'qw/group/syncGroup',
    checkRunningSyncGroup: 'qw/group/checkRunningSyncGroup',
    pageGroupCustomer: 'qw/group/pageGroupCustomer',
    getGroupInfo: 'qw/group/getGroupInfo',
    pageGroup: 'qw/group/pageGroup'
}

export function updateData (parameter) {
    return request({
        url: api.updateData,
        method: 'get',
        params: parameter
    })
}

export function checkRunningSyncGroup (parameter) {
    return request({
        url: api.checkRunningSyncGroup,
        method: 'get',
        params: parameter
    })
}

export function pageGroup (parameter) {
    return request({
        url: api.pageGroup,
        method: 'get',
        params: parameter
    })
}

export function getGroupInfo (parameter) {
    return request({
        url: api.getGroupInfo,
        method: 'get',
        params: parameter
    })
}

export function pageGroupCustomer (parameter) {
    return request({
        url: api.pageGroupCustomer,
        method: 'get',
        params: parameter
    })
}

export default {
    pageGroupCustomer,
    getGroupInfo,
    pageGroup,
    checkRunningSyncGroup,
    updateData

}
